package main

import (
	"fmt"
	"reflect"
)

type Blog struct {
	Name string
}

func (this Blog) Test() string {
	fmt.Println("this is Test method")
	return this.Name
}

func main() {
	var o interface{} = &Blog{"xiaorui.cc"}
	t := reflect.TypeOf(o)
	fmt.Println(t)

	 fmt.Println(t.MethodByName("Test"))

	if _,ok := t.MethodByName("Test"); ok{
		
	}





}